#include "FlyComponent.h"
#include <QDebug>

#include "UI/ModRun/Output/FactoryOutput.h"

FlyComponent::FlyComponent(QString strName)
{
    m_strName = strName;
}

FlyComponent::~FlyComponent()
{

}

void FlyComponent::Operation()
{
    QString strOutput = "FlyComponent::Operation:" + m_strName;
    qDebug() << strOutput;
    std::shared_ptr<IOutput> pOutPut = FactoryOutput::GetInstance()->CreateRunOutput();
    if (pOutPut)
    {
        std::initializer_list<QString> outList{ strOutput };
        pOutPut->OutPut(outList);
    }
}

